package com.haoniu.module.service.impl;

import com.haoniu.module.domain.database.RoomNotice;
import com.haoniu.module.mapper.RoomNoticeMapper;
import com.haoniu.module.service.RoomNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomNoticeServiceImpl implements RoomNoticeService {
    @Autowired
    private RoomNoticeMapper roomNoticeMapper;

    @Override
    public int insertRoomNotice(RoomNotice roomNotice) {
        return roomNoticeMapper.insertRoomNotice(roomNotice);
    }

    @Override
    public int deleteRoomNotice(Integer id) {
        return roomNoticeMapper.deleteRoomNotice(id);
    }

    @Override
    public int updateRoomNotice(RoomNotice roomNotice) {
        return roomNoticeMapper.updateRoomNotice(roomNotice);
    }

    @Override
    public List<RoomNotice> listRoomNotice() {
        return roomNoticeMapper.listRoomNotice();
    }
}
